package com.robot.console.util;

public class DelaySystemExit
{
	private static final long SLEEP_MILLIS = 10000L;

	public static void exit()
	{
		exit(SLEEP_MILLIS);
	}

	public static void exit(long millis)
	{
		try
		{
			if (millis > 0L)
			{
				Thread.sleep(millis);
			}
		}
		catch (Exception ex)
		{
		}
		finally
		{
			System.exit(1);
		}
	}
}
